//
//  QueryModel.h
//  CJRailTransport
//
//  Created by Hank on 2017/11/29.
//  Copyright © 2017年 amplity. All rights reserved.
//  查询列表接口 Model

#import <JSONModel/JSONModel.h>
#import "DetailInfoModel.h"

@protocol QueryContainerModel

@end

@interface QueryContainerModel : JSONModel // 按集装箱查询
// 集装箱
@property (strong, nonatomic) DetailInfoModel<Optional> *container;
// 支架和托盘
@property (strong, nonatomic) NSArray<DetailInfoModel, Optional> *rackList;

@end


@protocol QueryTrainNumberModel

@end

@interface QueryTrainNumberModel : JSONModel
//
@property (copy, nonatomic) NSString<Optional> *curNo;
//
@property (copy, nonatomic) NSString<Optional> *endPage;
//
@property (copy, nonatomic) NSString<Optional> *itemsPerPage;
//
@property (copy, nonatomic) NSString<Optional> *pageCount;
//
@property (strong, nonatomic) NSMutableArray<DetailInfoModel, Optional> *rows;
//
@property (copy, nonatomic) NSString<Optional> *startPage;
//
@property (copy, nonatomic) NSString<Optional> *total;

@end


@protocol QueryModel_TrainNumber

@end

@interface QueryModel_TrainNumber : JSONModel // 查询班列数据
// 是否成功标识 1 成功 -1失败
@property (copy, nonatomic) NSString<Optional> *retcode;
// 返回信息
@property (copy, nonatomic) NSString<Optional> *retmsg;
// 返回的数据 json
@property (strong, nonatomic) QueryTrainNumberModel<Optional> *retmarkobj;

@end


@protocol QueryModel_Container

@end

@interface QueryModel_Container : JSONModel // 查询集装箱数据
// 是否成功标识 1 成功 -1失败
@property (copy, nonatomic) NSString<Optional> *retcode;
// 返回信息
@property (copy, nonatomic) NSString<Optional> *retmsg;
// 返回的数据 json
@property (strong, nonatomic) QueryContainerModel<Optional> *retmarkobj;

@end


@protocol QueryModel_Bracket

@end

@interface QueryModel_Bracket : JSONModel // 查询支架数据
// 是否成功标识 1 成功 -1失败
@property (copy, nonatomic) NSString<Optional> *retcode;
// 返回信息
@property (copy, nonatomic) NSString<Optional> *retmsg;
// 返回的数据 json
@property (strong, nonatomic) DetailInfoModel<Optional> *retmarkobj;

@end


@protocol QueryModel

@end

@interface QueryModel : JSONModel

@end
